Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

escape-string-applescript

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

escape-string-applescript

Escape a string for use in AppleScript

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
141K
decreased by-43.92%
Maintainers
1
Weekly downloads
 
Created
Source

escape-string-applescript Build Status

Escape a string for use in AppleScript

According to the AppleScript docs, \ and " have special meaning and should be escaped.

Install

$ npm install --save escape-string-applescript

Usage

const {execFile} = require('child_process');
const escapeString = require('escape-string-applescript');

const str = escapeString('"i like unicorns"');
//=> '\"i like unicorns\"'

const script = `set unicornMessage to "${str}"`;

execFile('osascript', ['-e', script]);
  • run-applescript - Run AppleScript and get the result

License

MIT © Sindre Sorhus

Keywords

FAQs

Package last updated on 13 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc